package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 整车价格区间Entity
 * 
 * @author wuhao
 * @version 2016-08-08
 */
public class TRentprodPrice extends DataEntity<TRentprodPrice> {

	private static final long serialVersionUID = 1L;
	private Integer rentpriceid; // 主键
	private Integer forsaleid;
	private TCargotypeForsale cargosale;
	private Double suitrtnprice; // 套餐价格（零售往返价）
	private Date efftdate; // 生效时间
	private Date invaliddate; // 失效时间

	public TRentprodPrice() {
		super();
	}

	public TRentprodPrice(String id) {
		super(id);
	}

	public Integer getRentpriceid() {
		return rentpriceid;
	}

	public void setRentpriceid(Integer rentpriceid) {
		this.rentpriceid = rentpriceid;
	}

	@NotNull(message = "套餐价格（零售往返价）不能为空")
	public Double getSuitrtnprice() {
		return suitrtnprice;
	}

	public void setSuitrtnprice(Double suitrtnprice) {
		this.suitrtnprice = suitrtnprice;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message = "生效时间不能为空")
	public Date getEfftdate() {
		return efftdate;
	}

	public void setEfftdate(Date efftdate) {
		this.efftdate = efftdate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message = "失效时间不能为空")
	public Date getInvaliddate() {
		return invaliddate;
	}

	public void setInvaliddate(Date invaliddate) {
		this.invaliddate = invaliddate;
	}

	public Integer getForsaleid() {
		return forsaleid;
	}

	public void setForsaleid(Integer forsaleid) {
		this.forsaleid = forsaleid;
	}

	public TCargotypeForsale getCargosale() {
		return cargosale;
	}

	public void setCargosale(TCargotypeForsale cargosale) {
		this.cargosale = cargosale;
	}

}